package br.com.bancodecurriculos.util.dao;

import java.io.IOException;
import java.sql.SQLException;

import br.com.bancodecurriculos.util.exception.RegistroExistenteException;
import br.com.bancodecurriculos.util.exception.RegistroInexistenteException;

public interface IGenericDAO<PK, T> {

	public void save(T t) throws ClassNotFoundException, SQLException,
			RegistroExistenteException, IOException;

	public void update(T t) throws ClassNotFoundException, SQLException,
			RegistroInexistenteException, IOException;

	public T getById(PK id) throws ClassNotFoundException, SQLException,
			IOException;

	public void delete(PK id) throws ClassNotFoundException, SQLException,
			RegistroInexistenteException, IOException;

}
